import axios from 'axios';

axios.defaults.baseURL = 'http://47.94.110.194/api';

axios.interceptors.request.use(function (config) {
    return {
        ...config,
        withCredentials: true,
        Accept: 'application/json',
        crossDomain: true
    }
})
axios.interceptors.response.use(function (response) {
    if (response.status === 401) {
        console.log('relogin')
    }
    return response
})
